package com.qianya.model.pojo.login.qo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Package: com.qianya.model.pojo.login.qo
 * @ClassName: LoginQO
 * @Author: zzq
 * @Description:
 * @Date: 2020/7/3 9:46
 * @Version: 1.0
 */
@Data
@ApiModel(value="LoginQO", description="登录对象")
public class LoginQO implements Serializable {

    private static final long serialVersionUID = 4620118223215995669L;

    @ApiModelProperty(value = "用户名",required = true)
    @JsonProperty("uUsername")
    @NotBlank(message = "用户名不能为空")
    private String uUsername;

    @ApiModelProperty(value = "密码",required = true)
    @JsonProperty("uPassword")
    @NotBlank(message = "密码不能为空")
    private String uPassword;
}
